package com.zrrd.blog.system.mapper;

import com.zrrd.blog.api.entities.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2023-08-11
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    List<String> findRoleIdsById(@Param("id") String id);
    boolean deleteUserRoleByUserId(@Param("userId") String userId);
    boolean saveUserRole(@Param("userId") String userId,@Param("roleIds") List<String> roleIds);
}
